package com.zx.mobile.filter;

/**
 * 提供拦截器辅助功能
 *
 * @author jefferry.lu
 */
public class MobileFilterHelper {

    /**
     * 不需要拦截器处理的请求
     *
     * @param uri
     * @return
     */
    public static boolean urlNotNeedFilter(String uri) {
        boolean notNeedFilter = false;
        if (uri.contains("login") || uri.contains("register")
                || uri.contains("getpassword") || uri.contains("sessionexpire")
                || uri.contains("/mobile/index/sendVerifyCode")
                || uri.contains("/mobile/index/appRegister")
                || uri.contains("/mobile/index/bindcard")
                || uri.contains("/mobile/index/getpwdsecond")
                || uri.contains("/mobile/index/getpwdresult")
                || uri.contains("/mobile/index/getPwdVerifyCode")
                || uri.contains("/mobile/index/getSysRuntimeInfo")
                || uri.contains("/mobile/index/getCardPayOrder")
                || uri.contains("/mobile/index/getQrInfoByUserId")
                || uri.contains("/mobile/index/visit")
                //平安链接过滤
                || uri.contains("/mobile/PingAn")
                //内购过滤
                || uri.contains("/mobile/neiGou/dealError")
                || uri.contains("/mobile/neiGou/createUser")
                || uri.contains("/mobile/neiGou/createAutoLoginURL")
                || uri.contains("/mobile/neiGouOpen")
                //线下二维码链接过滤
                || uri.contains("/mobile/offline")) {
            notNeedFilter = true;
        }
        return notNeedFilter;
    }

    public static void main(String[] args) {
        String url="/mobile/mobile/neiGou/sss";
        url="/mobile/mobile/neiGou/getAccessTokenSpecific";
        urlNotNeedFilter(url);
    }
}
